package com.byxy.action;

import javax.annotation.Resource;

import com.byxy.entity.Book;
import com.byxy.service.BookService;

public class UpdateBookAction {
	private String id;
	private String name;
	private Integer quantity;
	private Integer number;
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public Integer getNumber() {
		return number;
	}
	public String getCategory() {
		return category;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	private String category;
	@Resource
	private BookService bookService; 
	public void update() {
		Book book =new Book(id,name,quantity,number,category);
		bookService.update(book);
	}
}
